package com.hulk.ratel.common.constant.enums;

import com.google.common.base.Objects;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by hulk on 2017/11/7.
 * 清算类型
 */
@Getter
@AllArgsConstructor
public enum SettleType {

    DC("DC", "直清"),
    SC("SC", "非直清");

    private String value;

    private String desc;



    public static String explain(String value) {
        for (SettleType obj : SettleType.values()) {
            if (Objects.equal(value, obj.value)) {
                return obj.desc;
            }
        }
        return value;
    }


}
